//
//  LNHGoodsInfoPopCell.m
//  LNH
//
//  Created by cruise on 2018/2/8.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "LNHGoodsInfoPopCell.h"

@implementation LNHGoodsInfoPopCell

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self.contentView addSubview:self.titleLabel];
        [self.contentView addSubview:self.contentLabel];
        
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).offset(15);
            make.left.equalTo(self.contentView).offset(15);
            make.width.mas_equalTo(60);
            make.bottom.equalTo(self.contentView.mas_bottom).offset(-15);
        }];
        
        [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).offset(15);
            make.left.equalTo(self.titleLabel.mas_right).offset(10);
            make.right.equalTo(self.contentView.mas_right).offset(-15);
            make.bottom.equalTo(self.contentView.mas_bottom).offset(-15);
        }];
        
    }
    return self;
}

-(UILabel *) titleLabel {
    if (!_titleLabel) {
        _titleLabel = [UILabel new];
        [_titleLabel setTextColor:RGBCOLOR(160, 160, 160)];
        [_titleLabel setFont:[UIFont systemFontOfSize:14]];
    }
    return _titleLabel;
}

-(UILabel *) contentLabel {
    if (!_contentLabel) {
        _contentLabel = [UILabel new];
        [_contentLabel setTextColor:RGBCOLOR(80, 80, 80)];
        [_contentLabel setFont:[UIFont systemFontOfSize:14]];
    }
    return _contentLabel;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
